<?php
    include 'config.php';
    include 'open_db.php';
    // assuming db connection is now open
    // return the number subs in db
    $query = "SELECT UserName FROM $dbtable";
    // send the query
    if ($result = $mysqli->query($query))
	{
	echo "There are $result->num_rows Users in BOGO";
	}
    else
	{
	echo 'Error: query for number of users in BOGO DB failed. Error was: ' . $mysqli->error;
	}

    include 'close_db.php';
?>
